import axios from 'axios';

export const getScheduleList = async (params: any) => {
    try {
        const response = await axios.get('/schedule/getScheduleList', { params });
        return response.data;
    } catch (error) {
        console.error('查询排班列表失败', error);
        return { success: false, message: '查询排班列表失败' };
    }
}